﻿<src:DisplayObjectImpl x:Class="AgilePlannerDT.Display.Impl.IterationDisplayObjectImpl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:src="clr-namespace:AgilePlannerDT.Display.Impl"
    xmlns:cw="clr-namespace:AgilePlannerDT.Display.CustomWidgets"
    xmlns:vr="clr-namespace:AgilePlannerDT.Display.ValidationRules"
    xmlns:con="clr-namespace:AgilePlannerDT.Utils"
    Height="250" Width="400" Opacity="1" Loaded="DisplayObjectImpl_Loaded">

    <!--<UserControl.Resources>
        <con:DateOnlyStringConverter x:Key="dateConv" />
    </UserControl.Resources>-->

    <!--<Border CornerRadius="15" Name="highlight" Padding="7" Background="Transparent" Height="264" Width="414" >-->
        <Border  CornerRadius="15" Name="border" BorderBrush="Black" BorderThickness="1" >
            <Canvas Name="canvas" Width="394" Height="244">
                <Grid Name="grid" Width="394" Height="244" Opacity="1">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="49"/>
                        <RowDefinition Height="*" MinHeight="84" />
                        <RowDefinition Height="35"/>
                        <RowDefinition Height="35"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="58"/>
                        <ColumnDefinition Width="46*" />
                        <ColumnDefinition Width="56*" MinWidth="56"/>
                        <ColumnDefinition Width="74.4*" MinWidth="74.4"/>
                        <ColumnDefinition Width="56*" MinWidth="56"/>
                        <ColumnDefinition Width="104"/>
                    </Grid.ColumnDefinitions>

                    <TextBlock Grid.Row="1"   Margin="5" Name="availableEffortLabel" FontSize="12" Foreground="Black" Grid.ColumnSpan="2">Available Effort</TextBlock>
                    <TextBox Margin="21.42,5,5,5" Name="availableEffortTextBox" FontSize="14" AcceptsReturn="False" VerticalContentAlignment="Center" HorizontalContentAlignment ="Left" Foreground="#FF444444" Grid.ColumnSpan="2">
                        <!--<TextBox.Text>
                            <Binding Path="AvailableEffort"  NotifyOnValidationError="True">
                                <Binding.ValidationRules>
                                    <vr:NumericValuesOnlyRule/>
                                </Binding.ValidationRules>
                            </Binding>
                        </TextBox.Text>-->
                    </TextBox>

                    <TextBlock  Grid.Row="1"  Margin="0,5,5,5" Grid.Column="5" Name="remainingEffortLabel" FontSize="12" Foreground="Black" TextAlignment="Right" >Remaining Effort</TextBlock>
                    <TextBox Grid.Column="5" Margin="5,5,34.986,5" Name="remainingEffortTextBox" FontSize="14" Focusable="False" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Foreground="#FF444444">
                    </TextBox>
                <!--    <TextBox Grid.Column ="3" Name="nameBox"> add a name box for iteration-->
                    <TextBlock Grid.Row="3"  Margin="5" Name="startDateLabel" TextAlignment="Left" FontSize="12" Foreground="Black" Grid.ColumnSpan="2">Start Date</TextBlock>
                    <TextBox Grid.Row="4"  Grid.ColumnSpan="3" Name="startDateTextBox" FontSize="14" VerticalContentAlignment="Top" HorizontalContentAlignment="Left" Foreground="#FF444444">
                      
                    </TextBox>

                    <TextBlock Grid.Row="3" Grid.Column="5" Margin="5" TextAlignment="Right" Name="endDateLabel" FontSize="12" Foreground="Black" >End Date</TextBlock>
                    <TextBox Grid.Row="4" Grid.Column="4" Grid.ColumnSpan="2" Name="endDateTextBox" FontSize="14" VerticalContentAlignment="Top" HorizontalContentAlignment="Right" Foreground="#FF444444" Margin="0,0,22,0">
                       
                    </TextBox>
             
                    <Grid Grid.ColumnSpan="6" Grid.RowSpan="5" Name="overlay" Opacity="1">
                        <cw:TranslateOnlyArea x:Name="translateOnlyArea" Panel.ZIndex="1000" IsHitTestVisible="False"  HorizontalAlignment="Center"   VerticalAlignment="Center" />
                        <cw:ResizerHandle  HorizontalAlignment="Right" VerticalAlignment="Bottom" x:Name="resizerHandle" Height="45" Width="45" Margin="0,0,-3,-3" />
                        <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Width="150" Height="150"  Name="highlightTextBlock" Foreground="Red" TextAlignment="Center" FontSize="80" IsHitTestVisible="False" />
                        <Button Style="{DynamicResource RoundButton}" Height="35" HorizontalAlignment="Right"  Name="deleteIterationButton" VerticalAlignment="Top" Width="34.986">
                            <Image  HorizontalAlignment="Right"  Name="image1" VerticalAlignment="Top"  Source="/AgilePlannerDT;component/Resources/delete.ico" Stretch="Fill" Height="14" Width="14" />
                        </Button>
                    </Grid>
                </Grid>
                <Button Style="{DynamicResource InvisibleButton}" Margin="-10,-25" Name="pin">
                    <Image Stretch="Fill" Height="30" Width="30"  Source="/Resources/Images/pins/pin_blue.png" HorizontalAlignment="Left" VerticalAlignment="Top" />
                </Button>
                
            </Canvas>
        </Border>
    
  <!--"  </Border>-->
</src:DisplayObjectImpl>
